import request from '@/utils/request'

//添加菜单 /manage/adminResource/addOne  post 
export const reqaddOneResource = (data) => {
    return request({
        url: '/manage/adminResource/addOne',
        method: 'post',
        data
    })
}

//请求所修改的节点的参数 /manage/adminResource/getOne  get 
export const reqGetOneNode = (params) => {
    return request({
        url: '/manage/adminResource/getOne',
        method: 'get',
        params
    })
}
//更新节点接口  /manage/adminResource/updateOne  post
export const reqUpdateOne = (data) => {
    return request({
        url: '/manage/adminResource/updateOne',
        method: 'post',
        data
    })
}
//移除节点 /manage/adminResource/deleteResource get
export const reqDeleteResource = (params) => {
    return request({
        url: '/manage/adminResource/deleteResource',
        method: 'get',
        params
    })
}
//更新节点分组 /manage/adminResource/updateParentId post
export const reqUpdateParentId = (data) => {
    return request({
        url: '/manage/adminResource/updateParentId',
        method: 'post',
        data
    })
}